#include<iostream>
#include<algorithm>

using namespace std;

int main()
{
	int n;
	cin>>n;
	int arr[10000];
	int sum=0;
	for(int i=0;i<n;i++){
		cin>>arr[i];
		sum+=arr[i];
	}
	sort(arr,arr+n);
	float average=(float)sum/(float)n;
	cout<<arr[n-1]<<endl<<arr[0]<<endl;
	printf("%.2f",average);
	return 0;
 } 
